package org.lyg.dao;

import org.lyg.domain.User;
import org.lyg.domain.UserCondition;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IUserMapper {
    List<User> list(UserCondition condition);

    int save(User user);

    int delete(int id);

    int update(User user);

    User getUserById(int id);

    User login(User user);

    User getUserByName(String name);
}
